import request from '@/utils/request'

/**
 * 退款单表分页查询
 * @param {查询条件} data
 */
export function listCorecmsbillrefund(query) {
  return request({
    url: 'order/Corecmsbillrefund/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增退款单表
 * @param data
 */
export function addCorecmsbillrefund(data) {
  return request({
    url: 'order/Corecmsbillrefund',
    method: 'post',
    data: data,
  })
}
/**
 * 修改退款单表
 * @param data
 */
export function updateCorecmsbillrefund(data) {
  return request({
    url: 'order/Corecmsbillrefund',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取退款单表详情
 * @param {Id}
 */
export function getCorecmsbillrefund(id) {
  return request({
    url: 'order/Corecmsbillrefund/' + id,
    method: 'get'
  })
}

/**
 * 删除退款单表
 * @param {主键} pid
 */
export function delCorecmsbillrefund(pid) {
  return request({
    url: 'order/Corecmsbillrefund/delete/' + pid,
    method: 'POST'
  })
}
